home *** CD-ROM | disk | FTP | other *** search
- import java.io.IOException;
- import javax.microedition.lcdui.Canvas;
- import javax.microedition.lcdui.Font;
- import javax.microedition.lcdui.Graphics;
- import javax.microedition.lcdui.Image;
-
- public class BlocksHelp extends Canvas {
- private Blocks parent;
- Image buf;
- Image imgLogo;
- // $FF: renamed from: bg javax.microedition.lcdui.Graphics
- Graphics field_0;
- Font fcal;
- private int width = ((Canvas)this).getWidth();
- private int height = ((Canvas)this).getHeight();
-
- public BlocksHelp(Blocks creator) {
- this.parent = creator;
- this.buf = Image.createImage(this.width, this.height);
- this.field_0 = this.buf.getGraphics();
- this.field_0.setGrayScale(255);
- this.field_0.fillRect(0, 0, ((Canvas)this).getWidth(), ((Canvas)this).getHeight());
-
- try {
- if (((Canvas)this).getWidth() < 120) {
- this.imgLogo = Image.createImage("/pics/fb11_1.png");
- } else {
- this.imgLogo = Image.createImage("/pics/fb11_2.png");
- }
- } catch (IOException var3) {
- }
-
- }
-
- public void paint(Graphics g) {
- g.drawImage(this.imgLogo, ((Canvas)this).getWidth() / 2, ((Canvas)this).getHeight() / 2, 1 | 2);
- }
- }
-